<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/classes/CommonHelper.class.jsp" %>
<%@ include file="/classes/DBHelper.class.jsp" %>
<%@ include file="/classes/GUID.class.jsp"%>
<%@ include file="/common/basePath.jsp"%>
<%
	String guid = getParameter(request,"guid");
	
	if(nullOrEmpty(guid)){
	%>
	<script type="text/javascript">
	<!--
	alert("参数错误！");
	window.location.href = 'zspj_list.jsp?r=<%=new Date().getTime() %>';
	//-->
	</script>
	<%
	return;
	}
	
	String sql = "delete from APP_ZSPJ where guid = ?";
	int count = executeUpdate(sql,new Object[]{guid});
	if(count>0){
		%>
		<script type="text/javascript">
		<!--
		alert("删除成功！");
		window.location.href = 'zspj_list.jsp?r=<%=new Date().getTime() %>';
		//-->
		</script>
		<%
	}else{
		%>
		<script type="text/javascript">
		<!--
		alert("删除失败！");
		window.location.href = 'zspj_list.jsp?r=<%=new Date().getTime() %>';
		//-->
		</script>
		<%
	}
%>